<div class="panel-group cardsecmenu" id="sec_menu" role="tablist" aria-multiselectable="true">
 <foreach name="SEC_MENU" item="row">
  <if condition="$row['type'] eq 1">
    <div class="panel panel-default">
      <div class="panel-heading" role="tab" id="sec_menu_{$row['id']}">
        <h4 class="panel-title">
          <a class="collapsed" role="button" data-toggle="collapse" data-parent="#sec_menu" href="#link_sec_menu_{$row['id']}" aria-expanded="false" aria-controls="#link_sec_menu_{$row['id']}">
            <span class="{$row['img']}" aria-hidden="true"></span>
              &nbsp;&nbsp;{$row['title']}
          </a>
        </h4>
      </div>
      <if condition="find_sec_menu($PUB_THISMENU['id'])['node_name'] eq $row['node_name']">
        <div id="link_sec_menu_{$row['id']}" class="panel-collapse collapse  in" role="tabpanel" aria-labelledby="sec_menu_{$row['id']}">
      <else />
        <div id="link_sec_menu_{$row['id']}" class="panel-collapse collapse " role="tabpanel" aria-labelledby="sec_menu_{$row['id']}">
      </if>
        <div class="panel-body">

          <!-- 这里判断页面内容 -->
          <if condition="$row['node_name'] eq 'Site/Content'">

              <div id="treeview" class="treeview">
               <ul class="list-group">
                
               </ul>
              </div>

          </if>




            <?php $next_menu=get_menu(array('type'=>'2','pid'=>$row['id'])) ?>
            <foreach name="next_menu" item="row1">
              <if condition="$row1['node_name'] eq $PUB_NODE">
                <a type="button" class="link next_active" href="{:U($row1['node_name'])}">
              <else />
                <a type="button" class="link" href="{:U($row1['node_name'])}">
              </if>
                <span class="{$row1['img']}" aria-hidden="true"></span>
                &nbsp;&nbsp;{$row1['title']}
              </a>
            </foreach>
        </div>
      </div>
    </div>
    
    <else />
      <div class="panel panel-default cpanel">
        <div class="panel-heading">
          <h4 class="panel-title">
            <if condition="$row['node_name'] eq $PUB_NODE or $row['node_name'] eq default_model($PUB_NODE)">
              <a class="" style="color: #BB5B5B" href="{:U($row['node_name'])}">
            <else />
              <a class="" href="{:U($row['node_name'])}">
            </if>
              <span class="{$row['img']}"></span>
              &nbsp;&nbsp;<span class="unopen">{$row['title']}</span>
              </a>
          </h4>
        </div>
      </div>
    </if>
  </foreach>
</div>


